package microcredit.model;

public class ValidationException extends Error {

	private static final long serialVersionUID = 1L;

	private String fieldName;
	
	public ValidationException(String message) {
		super(message);
	}
	
	public ValidationException(String message, String fieldName) {
		super(message);
		this.fieldName = fieldName;
	}

	public ValidationException() {
		super();
	}

	public ValidationException(String message, Throwable cause) {
		super(message, cause);
	}

	public ValidationException(Throwable cause) {
		super(cause);
	}
	
	public String getFieldName() {
		return fieldName;
	}
	
}
